package com.cade.agriculturemall.view.serviceAndPrivacy;

import android.os.Bundle;
import android.text.Html;
import android.text.method.ScrollingMovementMethod;
import android.widget.TextView;

import com.cade.agriculturemall.R;
import com.cade.agriculturemall.base.BaseActivity;
import com.cade.agriculturemall.base.IBasePresenter;
import com.cade.agriculturemall.utils.AssetsUtil;

public class ServiceAndPrivacyActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_service_and_privacy);
    }

    @Override
    public void setupView() {
       TextView tvContent;
        tvContent=(TextView)findViewById(R.id.pc_serviceAndPrivacy_tv_content);
        tvContent.setText(Html.fromHtml(AssetsUtil.stringFromAssetsName(getResources(), "protocol.txt")));
        //使TextView文本可以垂直滚动
        tvContent.setMovementMethod(ScrollingMovementMethod.getInstance());
    }

    @Override
    public void setupEvent() {

    }

    @Override
    public void setupData() {

    }

    @Override
    public IBasePresenter setupPresenter() {
        return null;
    }
}
